package cn.jhg.account.entity;


import java.io.Serializable;
import java.sql.Timestamp;

import javax.ws.rs.FormParam;

public class User implements Serializable {

	private int id=0; //用户id
	@FormParam("name")
	private String name=null; //用户名称
	private String password=null;//密码
	@FormParam("email")
	private String email=null;//邮箱
	@FormParam("telephone")
	private String telephone=null;//手机号
	private Timestamp pwdValidDate=null;//密码有效期
	private int status=0;//状态
	@FormParam("account")
	private String account=null;//账户
	private String auth=null;//权限
	private String locked=null;//锁定
	private String valid=null;//失效
	
	public User(){

	}

	
	public User(String account, int status, String email){
		this.account = account;
		this.status = status;
		this.email = email;
	}


	public String getAuth() {
		return auth;
	}
	
	public String getLocked() {
		return locked;
	}

	public void setLocked(String locked) {
		this.locked = locked;
	}

	public String getValid() {
		return valid;
	}

	public void setValid(String valid) {
		this.valid = valid;
	}





	public void setAuth(String auth) {
		this.auth = auth;
	}
	
	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", password=" + password + ", email=" + email + ", telephone="
				+ telephone + ", pwdValidDate=" + pwdValidDate + ", status=" + status + ", account=" + account
				+ ", auth=" + auth + ", locked=" + locked + ", valid=" + valid + "]";
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public Timestamp getPwdValidDate() {
		return pwdValidDate;
	}

	public void setPwdValidDate(Timestamp pwdValidDate) {
		this.pwdValidDate = pwdValidDate;
	}

}